package org.app.test.design;


public class Sin2 {
	private Sin2() {
		
	}
	private static Sin2 s2;
	public static synchronized Sin2 getInstance() {
		if(s2==null) {
			s2=new Sin2();
		}
		return s2;
	}
	public static void main(String[] args) {
		Sin2 s2 = Sin2.getInstance();
		Sin2 s22= Sin2.getInstance();
		System.out.println(s2==s22);
	}
}
